import request from '@/utils/request'

//  仓库管理列表
export const warehousePage = (params) => {
  return request({
    url: '/warehouse/page',
    params
  })
}

//  新建仓库编码  新增编号工厂

export const addCode = () => {
  return request({
    url: '/codeFactory/next/CK'
  })
}

// 新增仓库
export const addWarehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'POST',
    data
  })
}
export const putWarehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'PUT',
    data
  })
}
